<?php
class IndexApp extends CommonApp {
   
    public function indexAct(){

    	//设置
    	$result = My::alias2detail('config','home');
    	$this->assign('result',$result);

    	//友情链接
    	$url = My::alias2detail('config','url');
    	$this->assign('url',$url);
    	//新闻
    	$news_s = My::item2list('datas','news',array('pagesize'=>5,'publish'=>1,'order'=>'hot'));//5条
    	$news_b = My::item2list('datas','news',array('pagesize'=>20,'publish'=>1,'order'=>'hot'));//20条
		$this->assign('news_b',$news_b);
		$this->assign('news_s',$news_s);

		//通知公告
		$announ = My::item2list('datas','announ',array('pagesize'=>8,'publish'=>1,'order'=>'hot'));//8条
		$this->assign('announ',$announ);

		//创客空间
		$space = My::item2list('datas','space',array('pagesize'=>8,'publish'=>1,'order'=>'hot'));//8条
		$this->assign('space',$space);

		//优秀成果
		$event = My::item2list('datas','event',array('pagesize'=>12,'publish'=>1,'order'=>'hot'));//12条
		$this->assign('event',$event);

		$this->display();

    }
   
}